﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vouchersinvite.aspx.cs" Inherits="AiRiZu.User.Vouchersinvite" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>
	爱日租—全球最时尚、最具先锋概念的房屋日租、短租服务网站！
</title>
<meta content="爱日租,日租,短租,租房,家庭公寓,自助公寓,家庭旅馆,旅游" name="keywords"/>
<meta content="爱日租是国内首家专注房屋短期租赁的信息发布和在线交易的网站，为房主和租户搭建起最值得信赖的沟通和交易平台" name="description"/>

<link rel="stylesheet" href="css/css.css" />


<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/pixie.css" />



<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="main"/>
<link rel="stylesheet" href="css/dashboard.css" />

<link rel="stylesheet" href="css/voucher.css" />

<script type="text/javascript" src="../js/jquery.js"></script>

<script type="text/javascript">

	
	
	function addEmailAddr() {

		var emails = document.getElementsByName("emailAddr")
		var strObj = new Array();
		for(var i = 0 ;i < emails.length;i++) {
			if(emails[i].value != ""){
				strObj[i] = emails[i].value
			}
		}
		
		$("#emailAddrs").html($("#emailAddrs").html() + '<input type="text" name="emailAddr" class="wj-vi-mailadd"/>');

		var emailsAfter = document.getElementsByName("emailAddr")
		for(var j = 0 ;j < emailsAfter.length;j++) {
			if(strObj[j] != null) {
				emailsAfter[j].value = strObj[j]
			}
			
		}
	}

	function copyUrl() {
		if(window.clipboardData) {
			window.clipboardData.setData("Text", "http://www.airizu.com?inviteId=33591");
			alert("复制链接成功!您可以发送给您QQ、MSN上的朋友啦！");
		} else {
			alert("对不起，目前此功能只支持IE，请直接复制文本框内的地址！");
		}
		
	}

	function doSendInviteEmail() {
		var emails = document.getElementsByName("emailAddr")
		var sendFlag = false;
		var selfEmail = "prassein1@163.com"
			
		for(var i = 0 ;i < emails.length;i++) {
			if(emails[i].value != ""){
				sendFlag = true;
				if(!isEmail(emails[i].value)) {
					alert("电子邮件地址 " + emails[i].value + " 不是有效地址！");
					return false;
				}
				
				if(selfEmail != null && emails[i].value == selfEmail) {
					alert("电子邮件地址 " + emails[i].value + " 是您的邮箱，不能给自己发送邀请，请重新填写！")
					return false;
				}
			}
		}

		if(sendFlag == true) {
			document.forms[0].submit();
		} else {
			alert("邮件地址不能为空！");
			return false;
		}
		
	}
	
	function isEmail(strEmail) {
		if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {
			return true;
		} else {
			return false;
		}
	}
</script>

</head>
<body>
	<div name="waitingDiv" id="waitingDiv" style="display: none;">
		<div id="list_loading" name="list_loading">
			<div id="list_loading_wrapper" class="rounded_more">
				<img src="/images/home_spinner.gif"
					style="display: block; float: left; padding: 0 12px 0 0;" />页面载入中...
			</div>
		</div>
	</div>
	<div class="header">
		<a class="logo" title="爱日租" href="#"></a>
	  <div class="top_bar">
		<ul class="nav">
			
				<li>
				    <span class="SayHi"><%=Session["aliance"] != null? "嗨! " + Session["aliance"].ToString() : ""%>
				</li>
				


					<li><a href="#">用户中心</a>					</li>
					
  <li>
					<strong>
						<a href="#" class="message">
							<span id="unReadMessages"></span>
						</a>
					</strong>
					</li>
					
					<li class="rounded">
						<a href="#">
							收藏
							<span class="star" title="收藏" id="userFavorites"></span></a>					</li>
				

	  <li><a href="#">退出</a>				</li>
				
			
<li style="display:none"><span class="ChoLanguage selected">
					<a href="#">简体中文</a></span></li>
	            <li style="display:none"><span class="EngLanguage">
	            	<a href="#">English</a></span></li>

			
			
		</ul>
		<a href="../SendRoom.aspx" class="btn list_your_space">
			<span>发布房间</span>		</a>		</div>
		<p class="customer_hot_line"><span>400-696-6656</span><a href="#">媒体报道</a></p>
	</div>
	
<div id="command_center">


<ul id="nav">
	<li id="dashboardmenu"><a href="dashboard.aspx">我爱日租</a></li>
	<li id="inboxmenu"><a href="Index.aspx">收件箱</a></li>
	<li id="roomsmenu"><a href="MyRooms.aspx">我的房间</a></li>
	<li id="tripsmenu"><a href="Trips.aspx">出行计划</a></li>
	<li id="accountmenu"><a href="Warnset.aspx">账户信息</a></li>
	<li id="commentsmenu"><a href="Comments.aspx">评价推荐</a></li>
	<li id="vouchersmenu"><a href="Vouchersinvite.aspx">赢取租币</a></li>
</ul>

	










<ul class="subnav">
	<li id="vouchersinvite_submenu"><a href="#">邀请好友</a></li>
    <li id="myvouchers_submenu"><a href="MyVouchers.aspx">我的租币</a></li>
</ul>






	<form action="" runat="server">
	
 <div id="roomlist" class="box">
    <div class="top"></div>
	<div class="wj-voucher_invite">
		<div class="wj-vi-title">
			<h1>获取租币</h1>
		</div>
	    <div class="wj-vi-top">
	    <div class="wj-vi-voucher1">
		   <h2>注册验证</h2>
		    <p>完成注册并验证邮箱，奖励您200租币；验证手机号码后，再奖励您300租币。</p>
		    <div class="wj-vi-cash">
		    <div class="wj-vi-cash-un1">500</div>
		    </div>
		    </div>
		    <div class="wj-vi-voucher2">
		    <h2>邀请好友</h2>
		    <p>邀请好友，好友注册并验证邮箱和手机号码 后，每累计达到五个，奖励您200租币 。 </p>
		    <div class="wj-vi-cash">
		    <div class="wj-vi-cash-un2">200</div>
		    </div>
		    </div>
		    <div class="wj-vi-voucher3">
		    <h2>好友出租房间</h2>
		    <p>邀请好友，他/她的房间第一次获得订单，奖励您800租币 。</p>
		    <p>&nbsp;</p>
		    <div class="wj-vi-cash">
		    <div class="wj-vi-cash-un3">800</div>
		    </div>
		    </div>
		    <div class="wj-vi-voucher4">
		    <h2>好友入住房间</h2>
		    <p>邀请好友注册，他/她预订并完成第一笔300元（不包括优惠卷）以上订单，奖励您1200租币。</p>
		    <div class="wj-vi-cash">
		    <div class="wj-vi-cash-un4">1200</div>
		    </div>
		    </div>
		  </div>

 	    <div class="wj-vi-middle">
	    <h2>马上告诉朋友们，他们应该好好享受一个假期！</h2>
	    <p>转发到：
		    <a href="#"><img src="images/renren-16.gif" width="32" height="32" border="0" /></a>
		    <a href="#"><img src="images/kaixin001-16.gif" width="32" height="32" border="0" /></a>
		    <a href="#"><img src="images/qqweibo-16.gif" width="32" height="32" border="0" /></a>
		    <a href="#"><img src="images/weibo-16.gif" width="32" height="32" border="0" /></a>
		    <a href="#"><img src="images/douban-16.gif" width="32" height="32" border="0" /></a>	    </p>
	    <p>
		    您也可以把邀请链接发给QQ，MSN上的朋友：
		    <input name="fcxad" type="text" class="wj_vi_ilink" id="" value="http://www.airizu.com?inviteId=" + <%=Session["logId"] %>/>
		    <a href="#none" class="wj_vi_btn_copy" onClick="javascript:copyUrl();"></a>
	    </p>
	    </div>
	    <div class="wj-vi-bottom">
	    <div class="wj-vi-mailbox">
	    <div class="wj-vi-mailbox-top"></div>
	    <div class="wj-vi-mailbox-middle">
	    <div class="mailbox-inbox">
	      <img src="images/logo.jpg" width="145" height="76" class="wj-vi-mail-logo"/>
	      <img src="images/stamp.png" width="274" height="121" class="wj-vi-mail-stamp"/>
	      <div class="clear"></div>
	     <div class="wj-vi-mail-to">
		     <h3>收件人：</h3>
		     <p>输入您朋友的邮件地址，我们会给他们发送一份包含您推荐地址的邮件！</p>
		     <div id="emailAddrs">
			     <input type="text" name="emailAddr" 
			     	class="wj-vi-mailadd" value="friend@airizu.com"
			     	onblur="if(this.value == '') this.value = 'friend@airizu.com';" 
					onclick="if(this.value == 'friend@airizu.com') this.value = '';"/>
					
			     <input type="text" name="emailAddr" class="wj-vi-mailadd"/>
			     <input type="text" name="emailAddr" class="wj-vi-mailadd"/>
			     <input type="text" name="emailAddr" class="wj-vi-mailadd"/>
			     <input type="text" name="emailAddr" class="wj-vi-mailadd"/>
		     </div>
		     <div class="wj-vi-mailadd-add"><a href="#none" onClick="javascript:addEmailAddr();">+ 添加邮件地址</a></div>
	     </div>
	     <div class="wj-vi-mail-send"><h3>撰写邀请邮件：</h3>
	     <textarea cols="40" id="mailBody" name="mailBody" rows="20" style="height:240px; width:380px; margin-top:12px;" class="inputtxt_l wj-vi-mailcontent" />您好！
	 
	你的朋友 张雷 邀请您来使用爱日租！
	
	爱日租 - 全球最时尚，最具先锋概念的房屋日租、短租服务已经登陆中国！
	
	现在注册，预订并完成第一笔订单即可获得300元租币。发布房间，第一次被预订并完成订单即可再获得200元租币！
	
	您也可以通过以下链接访问爱日租：
	http://www.airizu.com?inviteId=33100
	</textarea>
	
	    <p class="wj_vi_send"><asp:LinkButton id="SendEmail" class="wj_vi_btn_send" runat="server" onclick="SendEmail_Click"></asp:LinkButton></p>
	
	     </div>
	     <div class="clear"></div>
	      </div>
	    </div>
	    <div class="wj-vi-mailbox-bottom"></div>
	    </div>
	    </div>
	</div>
	</div>
	</form>
</div>


	<!-- footer -->
	
<div id="footer">
  <p class="TxtEn">&copy; Copyright 2011 <a href="/businesslicence.html">airizu.com 爱日租 版权所有</a>&nbsp;&nbsp;<a href="/sitemap/index.html">站内导航</a>&nbsp;&nbsp;京ICP证110553 号
	 <br/><br/><img src="images/alipay.gif" width="123" height="40">&nbsp;&nbsp;
    <img src="images/tenpay.gif" width="96" height="40">&nbsp;&nbsp;    <img src="images/315.gif" width="89" height="40">    <img src="images/bluelogoair.gif"/></p>
</div>

</body>
</html>
